<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button style="color: purple" onclick="getButtonInfo(this)" value="提交表单">提交</button>
</body>
</html>
<script>
    function getButtonInfo(button) {
        console.log(button.value);
        console.log(button.style.color);
        console.log(button.disabled);
    }

</script>